import "./xxsw.css";

import { getData } from "../../../../api/getData";
import render from "./item.art";

// import render from "./item.art";
const XxswUrl = "https://www.imooc.com/api/mall-PC/index/seckill";

getData(XxswUrl)
  .then((res) => {
    const xxswPanel = document.querySelector("#xxswBd");
    const html = render({ data: res });
    xxswPanel.innerHTML = html;
  })
  .catch((err) => console.log(err));
